package movee.spring.app.template.io.topo;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * openfeign通过（spring-cloud）服务名调用
 *
 * @author movee
 */
@FeignClient(name = "${topo.service-name}", configuration = TopoRequestInterceptor.class)
@RequestMapping(value = "/v1/net/device")
public interface TopoFeign {

    @GetMapping(value = "/action/search-by-mgmtip")
    List<DeviceDto> searchByMgmtIp(@RequestParam List<String> mgmtIps);

}
